export default {
  data(){
    return {
      pagination:{
        //分页配置
        nums:10,
        total:0,
        start:1,
      },
    }
  },
  methods:{
    handleSizeChange(page){
      //页数数量变化
      console.log("数量",page);
      this.pagination.nums = page;
      this.getList&&this.getList()//如果有getList方法则执行更新接口
    },
    handleCurrentChange(current){
      //切换页数事件
      console.log("页数",current);
      this.pagination.start = current//((current - 1) * 10) + 1
      this.getList&&this.getList()
    }
  }
}
